index.js ➔ ???   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 2
dl 0
loc 7
rs 9.4285
nop 1
1
module.exports = $ => {
2
  const threadhold = 0
3
  const count = $('img:not([alt])').length
4
  return count > threadhold
5
    ? `There are ${count} <img> tag without alt attribute`
6
    : null
7
}
8